Copy jdk file:
  file.managed:
    - name: /tmp/jdk-8u91-linux-x64.rpm
    - source: /srv/files/jdk-8u91-linux-x64.rpm
    - unless: test -f /tmp/jdk-8u91-linux-x64.rpm

install-jdk:
  cmd.run:
    - name: |
        cd /tmp
        rpm -ivh jdk-8u91-linux-x64.rpm
    - unless: test -e jdk1.8.0_91

